package org.octopus.lee.main;

import org.octopus.lee.provider.DubboReferenceApi;
import org.octopus.lee.service.RegistryService;
import org.octopus.lee.service.impl.RegisterServiceImpl;

import java.io.IOException;

/**
 * Created by UCMED on 2017/1/13.
 */
public class MainTest2 {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException, IOException {
        DubboReferenceApi api = new DubboReferenceApi();
        api.setAddress("zookeeper://192.168.0.12:2181");
        api.setOrganization("ucmed");
        api.setProtocolPort(2281);
        api.setProtocolThreads(200);
        api.export(RegistryService.class, RegisterServiceImpl.class, "logitech");
        System.in.read();

    }
}
